<include file="Public/min-header" />
<div class="wrapper">
    <include file="Public/breadcrumb" />
    <section class="content">
        <div class="container-fluid">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i> <if condition="$t eq 'pc'">PC端<else/>手机端</if>模板</h3>
                </div>
                <div class="panel-body">
                    <div class="row">
                        <foreach name="template_config" item="val" key="k">
                            <div class="col-sm-6 col-md-4">
                                <style>
                                .thumbnail img {
                                    width: 460px;
                                    height: 270px;
                                }
                                </style>
                                <div class="thumbnail">
                                    <img src="/Tpl/{$t}/{$k}/{$val['img']}" />
                                    <div class="caption">
                                        <h3>{$val['name']}</h3>
                                        <p>{$val['remark']}</p>
                                        <p>
                                            <if condition="$default_theme == $k">
                                                <a href="{:U('Admin/Template/changeTemplate',array('key'=>$k,'t'=>$t))}" class="btn btn-success" role="button">已启用</a>
                                                <else />
                                                <a href="{:U('Admin/Template/changeTemplate',array('key'=>$k,'t'=>$t))}" class="btn btn-primary" role="button">启用</a>
                                            </if>
                                        </p>
                                    </div>
                                </div>
                            </div>
                        </foreach>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>
</body>

</html>
